import Vue from 'vue'
import { getQueryString } from '../utils/utils'


const native = (init)=> {
    FastClick.attach(document.body);
    if(getQueryString(window.location.href).mode == 'console'){
        require.ensure(['vconsole'], (require) => {
            var vConsole = require('vconsole')
            init()
        },'vconsole')
    }
    /*if(getQueryString(window.location.href).mode == 'console'){
        require.ensure(['vconsole'], (require) => {
            var vConsole = require('vconsole')
            init()
        },'vconsole')
    }*/
    else{
        init()
    }

    if(process.env.NODE_ENV == 'dev'){
        console.log('%c开发模式～￣▽￣～','font-size:25px;color:red')
    }
}

export {
    native
}